<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>地址簿页面</title>
<link href="skins/style.css" rel="stylesheet" type="text/css">
<jsp:include page="/base.jsp"></jsp:include>
</head>
<body>
	<%@include file="top.jsp"%>
	<table class="yrh">
		<tr>
			<td height="17"><a href="index.jsp">主页</a> &raquo; 地址簿</td>
		</tr>
	</table>

	<table class="inputTable">
		<tr>
			<td class="inputTitle">地址簿列表</td>
		</tr>
		<tr>
			<td>
				<table class="inputbox">
					<tr>
						<td width="4%">&nbsp;</td>
						<td width="55%">地址簿</td>
						<td width="41%">操作</td>
					</tr>
					<c:forEach items="${address}" var="addr">
						<tr>
							<input type="hidden" name="rowId" value="${addr.rowId}">
							<td><input type="radio" name="radiobutton" checked="checked"></td>
							<td>${addr.addrName}</td>
							<td><font color="#CC0000"><a href="AddressGoUpdateServlet??rowId=${addr.rowId}">修改</a>
							 <a href="address_del.jsp" onClick="javascript:if(confirm('确定删除？'));else return false">删除</a></font></td>
						</tr>
					</c:forEach>
				
					<tr>
						<td height="34">&nbsp;</td>
						<td height="34"><a href="order_confirm.jsp"><img src="skins/images/qydzb1.GIF" alt="配送至该地址" width="123" height="22" border="0"></a></td>
						<td>&nbsp;</td>
					</tr>
				</table>

			</td>
		</tr>
		<form action="AddressAddServlet" method="post">
		<tr>
			<td class="inputTitle">添加地址簿</td>
		</tr>
		<tr>
			<td>
				<table class="inputbox">

					<tr>
						<td width="21%" align="right">姓名：</td>
						<td width="38%"><input class="text width100" name="userName" maxlength="25"></td>
						<td width="41%">&nbsp;<font color="#CC0000">*&nbsp;必输项</font></td>
					</tr>
					<tr>
						<td align="right">手机号码：</td>
						<td><input class="text width100" name="userPhone" maxlength="25"></td>
						<td>&nbsp;<font color="#CC0000">*&nbsp;必输项</font></td>
					</tr>
					<tr>
						<td align="right">通讯地址：</td>
						<td>
							<select class="width32" id="provinceId" name="provinceCode">
							</select>
							<select class="width32" id="cityId" name="cityCode">
							</select>
							<select class="width32" id="districtId" name="districtCode">
							</select>

						</td>
					</tr>
					<tr>
						<td align="right">详细地址：</td>
						<td><input class="text width100" name="addrName" maxlength="25"></td>
						<td>&nbsp;<font color="#CC0000">*&nbsp;必输项</font></td>
					</tr>
					<tr>
						<td align="center" colspan="3"><input type="reset" class="bt2" value="重填"> <input type="submit" class="bt2" value="提交"></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	</form>
	<%@include file="bottom.jsp"%>
</body>
<script type="text/javascript"  src="skins/js/jQuery/jquery-3.4.1.js"></script>
<script type="text/javascript" src="skins/js/address_ajax.js"></script>
</html>